﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="dtsVoorraad" targetNamespace="http://tempuri.org/dtsVoorraad.xsd" xmlns:mstns="http://tempuri.org/dtsVoorraad.xsd" xmlns="http://tempuri.org/dtsVoorraad.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
  <xs:annotation>
    <xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
      <DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
        <Connections>
          <Connection AppSettingsObjectName="MySettings" AppSettingsPropertyName="csVoorraad_v1" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="csVoorraad_v1 (MySettings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.Voorraad.My.MySettings.GlobalReference.Default.csVoorraad_v1" Provider="Microsoft.SqlServerCe.Client.3.5" />
        </Connections>
        <Tables>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="BewegingenTableAdapter" GeneratorDataComponentClassName="BewegingenTableAdapter" Name="Bewegingen" UserDataComponentName="BewegingenTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="csVoorraad_v1 (MySettings)" DbObjectName="Bewegingen" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [Bewegingen] WHERE (([BewegingId] = @p1))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@p1" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="BewegingId" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [Bewegingen] ([ProductId], [AantalStuks], [Datum], [Opmerkingen]) VALUES (@p1, @p2, @p3, @p4)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@p1" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ProductId" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@p2" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="AantalStuks" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@p3" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="Datum" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@p4" Precision="0" ProviderType="NText" Scale="0" Size="0" SourceColumn="Opmerkingen" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>SELECT [BewegingId], [ProductId], [AantalStuks], [Datum], [Opmerkingen] FROM [Bewegingen]</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [Bewegingen] SET [ProductId] = @p1, [AantalStuks] = @p2, [Datum] = @p3, [Opmerkingen] = @p4 WHERE (([BewegingId] = @p5))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@p1" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ProductId" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@p2" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="AantalStuks" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@p3" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="Datum" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@p4" Precision="0" ProviderType="NText" Scale="0" Size="0" SourceColumn="Opmerkingen" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@p5" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="BewegingId" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="BewegingId" DataSetColumn="BewegingId" />
              <Mapping SourceColumn="ProductId" DataSetColumn="ProductId" />
              <Mapping SourceColumn="AantalStuks" DataSetColumn="AantalStuks" />
              <Mapping SourceColumn="Datum" DataSetColumn="Datum" />
              <Mapping SourceColumn="Opmerkingen" DataSetColumn="Opmerkingen" />
            </Mappings>
            <Sources />
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="ProductenTableAdapter" GeneratorDataComponentClassName="ProductenTableAdapter" Name="Producten" UserDataComponentName="ProductenTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="csVoorraad_v1 (MySettings)" DbObjectName="Producten" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [Producten] WHERE (([Productnr] = @p1))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@p1" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Productnr" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [Producten] ([Productnaam], [Voorraad], [Foto], [Omschrijving]) VALUES (@p1, @p2, @p3, @p4)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@p1" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Productnaam" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@p2" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Voorraad" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@p3" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Foto" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@p4" Precision="0" ProviderType="NText" Scale="0" Size="0" SourceColumn="Omschrijving" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>SELECT [Productnr], [Productnaam], [Voorraad], [Foto], [Omschrijving] FROM [Producten]</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [Producten] SET [Productnaam] = @p1, [Voorraad] = @p2, [Foto] = @p3, [Omschrijving] = @p4 WHERE (([Productnr] = @p5))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@p1" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Productnaam" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@p2" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Voorraad" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@p3" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Foto" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@p4" Precision="0" ProviderType="NText" Scale="0" Size="0" SourceColumn="Omschrijving" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@p5" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Productnr" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="Productnr" DataSetColumn="Productnr" />
              <Mapping SourceColumn="Productnaam" DataSetColumn="Productnaam" />
              <Mapping SourceColumn="Voorraad" DataSetColumn="Voorraad" />
              <Mapping SourceColumn="Foto" DataSetColumn="Foto" />
              <Mapping SourceColumn="Omschrijving" DataSetColumn="Omschrijving" />
            </Mappings>
            <Sources />
          </TableAdapter>
        </Tables>
        <Sources />
      </DataSource>
    </xs:appinfo>
  </xs:annotation>
  <xs:element name="dtsVoorraad" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="True" msprop:Generator_DataSetName="dtsVoorraad" msprop:Generator_UserDSName="dtsVoorraad">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="Bewegingen" msprop:Generator_TableClassName="BewegingenDataTable" msprop:Generator_TableVarName="tableBewegingen" msprop:Generator_TablePropName="Bewegingen" msprop:Generator_RowDeletingName="BewegingenRowDeleting" msprop:Generator_UserTableName="Bewegingen" msprop:Generator_RowChangingName="BewegingenRowChanging" msprop:Generator_RowEvHandlerName="BewegingenRowChangeEventHandler" msprop:Generator_RowDeletedName="BewegingenRowDeleted" msprop:Generator_RowEvArgName="BewegingenRowChangeEvent" msprop:Generator_RowChangedName="BewegingenRowChanged" msprop:Generator_RowClassName="BewegingenRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="BewegingId" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnBewegingId" msprop:Generator_ColumnPropNameInRow="BewegingId" msprop:Generator_ColumnPropNameInTable="BewegingIdColumn" msprop:Generator_UserColumnName="BewegingId" type="xs:int" />
              <xs:element name="ProductId" msprop:Generator_ColumnVarNameInTable="columnProductId" msprop:Generator_ColumnPropNameInRow="ProductId" msprop:Generator_ColumnPropNameInTable="ProductIdColumn" msprop:Generator_UserColumnName="ProductId" type="xs:int" minOccurs="0" />
              <xs:element name="AantalStuks" msprop:Generator_ColumnVarNameInTable="columnAantalStuks" msprop:Generator_ColumnPropNameInRow="AantalStuks" msprop:Generator_ColumnPropNameInTable="AantalStuksColumn" msprop:Generator_UserColumnName="AantalStuks" type="xs:int" minOccurs="0" />
              <xs:element name="Datum" msprop:Generator_ColumnVarNameInTable="columnDatum" msprop:Generator_ColumnPropNameInRow="Datum" msprop:Generator_ColumnPropNameInTable="DatumColumn" msprop:Generator_UserColumnName="Datum" type="xs:dateTime" minOccurs="0" />
              <xs:element name="Opmerkingen" msprop:Generator_ColumnVarNameInTable="columnOpmerkingen" msprop:Generator_ColumnPropNameInRow="Opmerkingen" msprop:Generator_ColumnPropNameInTable="OpmerkingenColumn" msprop:Generator_UserColumnName="Opmerkingen" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="536870911" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="Producten" msprop:Generator_TableClassName="ProductenDataTable" msprop:Generator_TableVarName="tableProducten" msprop:Generator_TablePropName="Producten" msprop:Generator_RowDeletingName="ProductenRowDeleting" msprop:Generator_UserTableName="Producten" msprop:Generator_RowChangingName="ProductenRowChanging" msprop:Generator_RowEvHandlerName="ProductenRowChangeEventHandler" msprop:Generator_RowDeletedName="ProductenRowDeleted" msprop:Generator_RowEvArgName="ProductenRowChangeEvent" msprop:Generator_RowChangedName="ProductenRowChanged" msprop:Generator_RowClassName="ProductenRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="Productnr" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnProductnr" msprop:Generator_ColumnPropNameInRow="Productnr" msprop:Generator_ColumnPropNameInTable="ProductnrColumn" msprop:Generator_UserColumnName="Productnr" type="xs:int" />
              <xs:element name="Productnaam" msprop:Generator_ColumnVarNameInTable="columnProductnaam" msprop:Generator_ColumnPropNameInRow="Productnaam" msprop:Generator_ColumnPropNameInTable="ProductnaamColumn" msprop:Generator_UserColumnName="Productnaam" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="255" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Voorraad" msprop:Generator_ColumnVarNameInTable="columnVoorraad" msprop:Generator_ColumnPropNameInRow="Voorraad" msprop:Generator_ColumnPropNameInTable="VoorraadColumn" msprop:Generator_UserColumnName="Voorraad" type="xs:int" minOccurs="0" />
              <xs:element name="Foto" msprop:Generator_ColumnVarNameInTable="columnFoto" msprop:Generator_ColumnPropNameInRow="Foto" msprop:Generator_ColumnPropNameInTable="FotoColumn" msprop:Generator_UserColumnName="Foto" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="255" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Omschrijving" msprop:Generator_ColumnVarNameInTable="columnOmschrijving" msprop:Generator_ColumnPropNameInRow="Omschrijving" msprop:Generator_ColumnPropNameInTable="OmschrijvingColumn" msprop:Generator_UserColumnName="Omschrijving" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="536870911" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
    <xs:unique name="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:Bewegingen" />
      <xs:field xpath="mstns:BewegingId" />
    </xs:unique>
    <xs:unique name="Producten_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:Producten" />
      <xs:field xpath="mstns:Productnr" />
    </xs:unique>
  </xs:element>
  <xs:annotation>
    <xs:appinfo>
      <msdata:Relationship name="Product-Bewegingen" msdata:parent="Producten" msdata:child="Bewegingen" msdata:parentkey="Productnr" msdata:childkey="ProductId" msprop:Generator_UserChildTable="Bewegingen" msprop:Generator_ChildPropName="GetBewegingenRows" msprop:Generator_ParentPropName="ProductenRow" msprop:Generator_UserRelationName="Product-Bewegingen" msprop:Generator_RelationVarName="_relationProduct_Bewegingen" msprop:Generator_UserParentTable="Producten" />
    </xs:appinfo>
  </xs:annotation>
</xs:schema>